<div class="flash-message <?php echo $flash_class; ?>"<?= strlen($flash_message)==0 ? " style=\"display:none\"" : "" ?>>
<?php echo $flash_message; ?>
</div>
<script type="text/javascript">
hideFlash();
</script>